package com.joolun.cloud.upms.common.feign;

import com.joolun.cloud.common.core.constant.SecurityConstants;
import com.joolun.cloud.common.core.constant.ServiceNameConstants;
import com.joolun.cloud.common.core.util.R;
import com.joolun.cloud.upms.common.entity.SysUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author
 */
@FeignClient(contextId = "FeignShopUserService", value = ServiceNameConstants.UMPS_ADMIN_SERVICE)
public interface FeignShopUserService {
	/**
	 * 店铺用户新增服务间调用
	 *
	 * @param sysUser
	 * @param from
	 * @return succes、false
	 */
	@PostMapping("/shopuser/inside")
	R<Boolean> save(@RequestBody SysUser sysUser, @RequestHeader(SecurityConstants.FROM) String from);
}
